package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.common.base.R;
import com.dingreading.cloud.common.util.PageUtil;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;

public interface CourseTrainCommonService {
    R<Object> pageList(PageUtil pageUtil, String headStaffUid, String headStaffName, String keyword, String mainTypeUid, String typeUid, Integer enabled);

    R<Object> newBean(String headStaffUid, String headStaffName, String uid, String name, String intro, String mainTypeUid, String typeUid);

    R<Object> getByUid(String headStaffUid, String headStaffName, String uid);

    R<Object> updateEnabled(String headStaffUid, String headStaffName, String uid, Integer enabled);

    R<Object> upOrDown(String headStaffUid, String headStaffName, String uid, Integer type);

    R<Object> dropBean(String headStaffUid, String headStaffName, String uid);

    R<String> getCdnUrl(HttpServletRequest request, String headStaffUid, String headStaffName, String url);

    R<Object> pageFileList(PageUtil pageUtil, String headStaffUid, String headStaffName, String keyword, String lessonUid, Integer enabled);

    R<Object> newFile(String headStaffUid, String headStaffName, String uid, String lessonUid, String name, String url, Integer videoDuration);

    R<Object> getFileByUid(String headStaffUid, String headStaffName, String uid);

    R<Object> updateFileEnabled(String headStaffUid, String headStaffName, String uid, Integer enabled);

    R<Object> getFileByLessonUid(String headStaffUid, String headStaffName, String lessonUid);

    R<Object> getList(String headStaffUid, String headStaffName, String storeUid, String beginDate, String endDate) throws ParseException;

    R<Object> getStores(String headStaffUid, String headStaffName, String beginDate, String endDate) throws ParseException;
}
